package com.handler;

import com.handler.manager.BasicGameServerPacketHandler;
import com.message.Message.UserInfo;
import com.message.TransformationMessages;

public class GameServerTowHandler extends BasicGameServerPacketHandler {

	public GameServerTowHandler() {
		super((short)1002);
	}

	@Override
	public TransformationMessages.GameServerPacket handle(TransformationMessages.GameServerPacket packet) throws Exception {
		UserInfo info = UserInfo.parseFrom(packet.getBytes());
		UserInfo.Builder res = UserInfo.newBuilder();
		res.setId(1001);
		res.setName("tom");
		System.out.println("client 1 receive client2 packet:"+info.getName());
		return null;
	}

}
